package com.eight.common.pojo;

import java.io.Serializable;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 讲师
 *
 * @TableName edu_teacher
 */
@Data
@ApiModel(value = "讲师")
public class EduTeacher implements Serializable {
    /**
     * 讲师ID
     */
    @ApiModelProperty("讲师ID")
    private String id;
    /**
     * 讲师姓名
     */
    @ApiModelProperty("讲师姓名")

    private String name;
    /**
     * 讲师简介
     */
    @ApiModelProperty("讲师简介")
    private String intro;
    /**
     * 讲师资历,一句话说明讲师
     */
    @ApiModelProperty("讲师资历,一句话说明讲师")
    private String career;
    /**
     * 头衔 0高级讲师 1首席讲师
     */
    @ApiModelProperty("头衔 0高级讲师 1首席讲师")
    private Object level;
    /**
     * 讲师头像
     */
    @ApiModelProperty("讲师头像")
    private String avatar;
    /**
     * 排序
     */
    @ApiModelProperty("排序")
    private Object sort;
    /**
     * 逻辑删除 1（true）已删除， 0（false）未删除
     */
    @ApiModelProperty("逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    @TableField(value = "is_deleted")
    private Integer isDeleted;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime gmtModified;
    /**
     * 讲师手机
     */
    @ApiModelProperty("讲师手机")
    private String mobile;
    /**
     * 讲师邮箱
     */
    @ApiModelProperty("讲师邮箱")
    private String email;
    /**
     * 讲师状态  0 正常 ，1 禁用
     */
    @ApiModelProperty("讲师状态  0 正常 ，1 禁用")
    private String status;

    @ApiModelProperty("讲师审核")
    @TableField(exist = false)
    private TbCheckTeacher tbCheckTeacher;

    @ApiModelProperty("讲师审核")
    @TableField(exist = false)
    private TbMember tbMember;
}
